Shorthand to the subset function.
Function to replace specific elements in a gridlayer object
# S4 method for gridlayer,ANY,missing
[(x, i)# S4 method for gridlayer,SpatExtent,missing
[(x, i)
# S4 method for gridlayer,ANY,ANY
[(x, i) <- value
The extraction methods return facelayer-class objects.
(facelayer) The object to be subsetted.
(logical, numeric or SpatExtent) The subscript vector, or extent, specifying the faces that are used for subsetting. As in subset.
The replacement values.
All these methods are implementing direct replacement in the @values slot of a layer, depending on criteria used for subsetting.